home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 1.iso / dist / fw_enscript.idb / usr / freeware / catman / u_man / cat1 / enscript.Z / enscript
Encoding:
Text File  |  2002-04-08  |  57.3 KB  |  1,379 lines

  1. ENSCRIPT(1)             ENSCRIPT              ENSCRIPT(1)
  2.  
  3.  
  4.  
  5. NNAAMMEE
  6.        enscript     -  convert  text files    to PostScript, HTML, RTF,
  7.        ANSI, and overstrikes
  8.  
  9.  
  10. SSYYNNOOPPSSIISS
  11.        eennssccrriipptt    [--112233445566778899BBccggGGhhjjkkKKllmmOOqqrrRRvvVVzzZZ]    [--##  _c_o_p_i_e_s]  [--aa
  12.        _p_a_g_e_s]    [--AA   _a_l_i_g_n]  [--bb  _h_e_a_d_e_r]  [--CC[_s_t_a_r_t___l_i_n_e]]  [--dd
  13.        _p_r_i_n_t_e_r]    [--DD _k_e_y[::_v_a_l_u_e]] [--ee[_c_h_a_r]] [--EE[_l_a_n_g]] [--ff  _f_o_n_t]
  14.        [--FF  _h_e_a_d_e_r___f_o_n_t]  [--HH[_n_u_m]]  [--ii  _i_n_d_e_n_t] [--II _f_i_l_t_e_r] [--JJ
  15.        _t_i_t_l_e] [--LL _l_i_n_e_s___p_e_r___p_a_g_e] [--MM _m_e_d_i_a] [--nn _c_o_p_i_e_s] [--NN _n_e_w_
  16.        _l_i_n_e]  [--oo  _o_u_t_p_u_t_f_i_l_e]    [--oo --] [--pp _o_u_t_p_u_t_f_i_l_e] [--pp --] [--PP
  17.        _p_r_i_n_t_e_r]    [--ss _b_a_s_e_l_i_n_e_s_k_i_p] [--SS _k_e_y[::_v_a_l_u_e]] [--tt _t_i_t_l_e] [--TT
  18.        _t_a_b_s_i_z_e]     [--uu[_t_e_x_t]]  [--UU _n_u_m] [--ww _l_a_n_g_u_a_g_e] [--XX    _e_n_c_o_d_i_n_g]
  19.        [_f_i_l_e_n_a_m_e ...]
  20.  
  21.  
  22. DDEESSCCRRIIPPTTIIOONN
  23.        EEnnssccrriipptt    converts text files to    PostScript  or    to  other
  24.        output languages.  EEnnssccrriipptt can spool the generated output
  25.        directly    to a specified printer or leave    it to a    file.  If
  26.        no  input files are given, eennssccrriipptt processes the standard
  27.        input ssttddiinn.  EEnnssccrriipptt can be extended to handle    different
  28.        output  media and it has    many options which can be used to
  29.        customize the printouts.
  30.  
  31.  
  32. OOPPTTIIOONNSS
  33.        --## _n_u_m  Print _n_u_m copies    of each    page.
  34.  
  35.        --11,, --22,, --33,, --44,, --55,, --66,, --77,, --88,, --99,, ----ccoolluummnnss==_n_u_m
  36.            Specify how many    columns    each page have.     With the
  37.            long  option  ----ccoolluummnnss==_n_u_m  you     can specify more
  38.            than 9 columns per page.
  39.  
  40.        --aa _p_a_g_e_s,, ----ppaaggeess==_p_a_g_e_s
  41.            Specify which pages are printed.     The page  speci
  42.            fication     _p_a_g_e_s can be given in the following for
  43.            mats:
  44.  
  45.            _b_e_g_i_n-_e_n_d
  46.                print pages from    _b_e_g_i_n to _e_n_d
  47.  
  48.            -_e_n_d    print pages from    0 to _e_n_d
  49.  
  50.            _b_e_g_i_n-  print pages from    _b_e_g_i_n to end
  51.  
  52.            _p_a_g_e    print page _p_a_g_e
  53.  
  54.            odd     print odd pages
  55.  
  56.            even    print even pages
  57.  
  58.        --AA _a_l_i_g_n,, ----ffiillee--aalliiggnn==_a_l_i_g_n
  59.            Align separate input  files  to    even  _a_l_i_g_n  page
  60.            count.  This option is useful in    two-side and 2-up
  61.            printings (--file-align=2).
  62.  
  63.        --bb _h_e_a_d_e_r,, ----hheeaaddeerr==_h_e_a_d_e_r
  64.            Use the text _h_e_a_d_e_r as a    page header.  The default
  65.            page  header  is     constructed from the name of the
  66.            file and    from its last modification time.
  67.  
  68.            The header string _h_e_a_d_e_r    can contain the    same for
  69.            matting    escapes     which    can  be    specified for the
  70.            %%FFoorrmmaatt directives in the user defined fancy head
  71.            ers.  For example, the following    option prints the
  72.            file name, current data and page    numbers:
  73.  
  74.            eennssccrriipptt    ----hheeaaddeerr==''$$nn %%WW    PPaaggee $$%%    ooff $$=='' **..cc
  75.  
  76.            The header string can also  contain  left,  center
  77.            and  right justified fields.  The fields    are sepa
  78.            rated by    the ''||''    character:
  79.  
  80.            eennssccrriipptt    ----hheeaaddeerr==''$$nn||%%WW||PPaaggee $$%%    ooff $$=='' **..cc
  81.  
  82.            now the file name is printed left  justified,  the
  83.            date  is     centered to the header    and the    page num
  84.            bers are    printed    right justified.
  85.  
  86.        --BB,, ----nnoo--hheeaaddeerr
  87.            Do not print page headers.
  88.  
  89.        --cc,, ----ttrruunnccaattee--lliinneess
  90.            Cut lines that are too long for the  page.   As    a
  91.            default,     eennssccrriipptt  wraps  long    lines to the next
  92.            line so no information is lost.
  93.  
  94.            You can also use    the ----sslliiccee option  which  slices
  95.            long lines to separate pages.
  96.  
  97.        --CC[_s_t_a_r_t___l_i_n_e],, ----lliinnee--nnuummbbeerrss[==_s_t_a_r_t___l_i_n_e]
  98.            Precede    each  line  with  its  line  number.  The
  99.            optional    argument _s_t_a_r_t___l_i_n_e specifies the  number
  100.            of the first line in the    input.    The number of the
  101.            first line defaults to 1.
  102.  
  103.        --dd _n_a_m_e Spool output to the printer _n_a_m_e.
  104.  
  105.        --DD _k_e_y[::_v_a_l_u_e],, ----sseettppaaggeeddeevviiccee==_k_e_y[::_v_a_l_u_e]
  106.            Pass a page device  definition  to  the    generated
  107.            PostScript  output.  If no value    is given, the key
  108.            _k_e_y is removed from the definitions.
  109.  
  110.            For example, the    command
  111.  
  112.            eennssccrriipptt    --DDDDuupplleexx::ttrruuee ffoooo..ttxxtt
  113.  
  114.            prints file foo.txt in duplex (two side)    mode.
  115.  
  116.            Page device operators are implementation    dependant
  117.            but  they  are  standardized.   See  section  PPAAGGEE
  118.            DDEEVVIICCEE OOPPTTIIOONNSS for the details.
  119.  
  120.        --ee[_c_h_a_r],, ----eessccaappeess[==_c_h_a_r]
  121.            Enable special escapes interpretation (see section
  122.            SSPPEECCIIAALL    EESSCCAAPPEESS).  If the argument _c_h_a_r    is given,
  123.            it changes the  escape  character  to  _c_h_a_r.   The
  124.            default escape character    is 0.
  125.  
  126.        --EE[_l_a_n_g],, ----hhiigghhlliigghhtt[==_l_a_n_g]
  127.            Highlight  source code by creating a special input
  128.            filter with  the     ssttaatteess     program.   The     optional
  129.            argument    _l_a_n_g specifies the language to highlight.
  130.            As a default the    ssttaatteess makes an    educated guess.
  131.  
  132.            You can print a short description of the    supported
  133.            highlighting  languages    and file formats with the
  134.            command:
  135.  
  136.            eennssccrriipptt    ----hheellpp--hhiigghhlliigghhtt
  137.  
  138.            The  highlighting  rules     are   defined     in   the
  139.            `@DATADIR@/enscript/st/*.st'  files  which  can be
  140.            edited to create    highlighting definitions for  new
  141.            languages.
  142.  
  143.            NNoottee!!  You can not use your own input filters with
  144.            this option.
  145.  
  146.        --ff _n_a_m_e,,    ----ffoonntt==_n_a_m_e
  147.            Select a    font that is used for the body text.  The
  148.            default body font is CCoouurriieerr1100, unless multicolumn
  149.            landscape printing mode is selected, in which case
  150.            the default font    is CCoouurriieerr77.
  151.  
  152.            The  font  specification     _n_a_m_e contains two parts:
  153.            the name    of the font and    its  size  in  PostScript
  154.            points.     For example, "TTiimmeess--RRoommaann1122" selects the
  155.            "Times-Roman" font with size 12pt.
  156.  
  157.            The font    specification _n_a_m_e can also be    given  in
  158.            format  `_n_a_m_e@_p_t_s_i_z_e',  where the name of the font
  159.            and its point size are separated    by a `@'  charac
  160.            ter.  This allows eennssccrriipptt to use fonts which con
  161.            tain digit characters in    their names.
  162.  
  163.            The font    point size can also be given in    the  for
  164.            mat  _w_i_d_t_h/_h_e_i_g_h_t  where     the _w_i_d_t_h and the _h_e_i_g_h_t
  165.            specify the size    of the font in    x-  and     y-direc
  166.            tions.  For example, "TTiimmeess--RRoommaann@@1100//1122"    selects    a
  167.            10 points wide and 12  points  high  "Times-Roman"
  168.            font.
  169.  
  170.            You  can     also give the font sizes as decimal num
  171.            bers.  For example,  "TTiimmeess--RRoommaann1100..22"  selects    a
  172.            10.2pt "Times-Roman" font.
  173.  
  174.        --FF _n_a_m_e,,    ----hheeaaddeerr--ffoonntt==_n_a_m_e
  175.            Select a    font for the header texts.
  176.  
  177.        --gg,, ----pprriinntt--aannyywwaayy
  178.            Print a file even if it contains    binary data.  The
  179.            option is implemented only for compatibility  pur
  180.            poses.     EEnnssccrriipptt   prints  binary  files  anyway
  181.            regardless of the option.
  182.  
  183.        --GG,, ----ffaannccyy--hheeaaddeerr[==_n_a_m_e]
  184.            Print a fancy page header _n_a_m_e to the top of  each
  185.            page.   The  option --GG specifies    the default fancy
  186.            header.    See section CCOONNFFIIGGUURRAATTIIOONN  FFIILLEESS  to  see
  187.            how the default fancy header can    be changed.
  188.  
  189.        --hh,, ----nnoo--jjoobb--hheeaaddeerr
  190.            Suppress    printing of the    job header page.
  191.  
  192.        --HH[_n_u_m],,    ----hhiigghhlliigghhtt--bbaarrss[==_n_u_m]
  193.            Specify    how high the highlight bars are    in lines.
  194.            If the _n_u_m is not given,    the default  value  2  is
  195.            used.    As  a  default,     no  highlight    bars  are
  196.            printed.
  197.  
  198.        --ii _n_u_m,, ----iinnddeenntt==_n_u_m
  199.            Indent every line _n_u_m characters.  The indentation
  200.            can  also be specified in other units by    appending
  201.            an unit specifier after the number.  The     possible
  202.            unit specifiers and the corresponding units are:
  203.  
  204.            cc       centimeters
  205.  
  206.            ii       inches
  207.  
  208.            ll       characters (default)
  209.  
  210.            pp       PostScript points
  211.  
  212.        --II _f_i_l_t_e_r,, ----ffiilltteerr==_f_i_l_t_e_r
  213.            Read  all input files through an    input filter _f_i_l_
  214.            _t_e_r.  The input filter can be a single command  or
  215.            a  command  pipeline.  The filter can refer to the
  216.            name of the input file with the escape `%%ss'.   The
  217.            name of the standard input can be changed with the
  218.            option `----ffiilltteerr--ssttddiinn'.
  219.  
  220.            For example, the    following command prints the file
  221.            `foo.c' by using    only upper-case    characters:
  222.  
  223.            eennssccrriipptt    ----ffiilltteerr==""ccaatt %%ss || ttrr ''aa--zz'' ''AA--ZZ''"" ffoooo..cc
  224.  
  225.            The following command highlights    changes    which are
  226.            made to files since the last checkout:
  227.  
  228.            eennssccrriipptt    ----ffiilltteerr==""rrccssddiiffff %%ss || ddiiffffpppp %%ss"" --ee **..cc
  229.  
  230.            To include the string "%s" to the filter     command,
  231.            you must    write it as "%%s".
  232.  
  233.        --jj,, ----bboorrddeerrss
  234.            Print borders around columns.
  235.  
  236.        --JJ _t_i_t_l_e
  237.            An alias    for the    option --tt, ----ttiittllee.
  238.  
  239.        --kk,, ----ppaaggee--pprreeffeeeedd
  240.            Enable page prefeed.
  241.  
  242.        --KK,, ----nnoo--ppaaggee--pprreeffeeeedd
  243.            Disable page prefeed (default).
  244.  
  245.        --ll,, ----lliinneepprriinntteerr
  246.            Emulate    lineprinter.   This  option is a shortcut
  247.            for   the   options    ----lliinneess--ppeerr--ppaaggee==6666,    and
  248.            ----nnoo--hheeaaddeerr.
  249.  
  250.        --LL _n_u_m,, ----lliinneess--ppeerr--ppaaggee==_n_u_m
  251.            Print only _n_u_m lines for    each page.  As a default,
  252.            the number of lines per page is computed    from  the
  253.            height  of the page and from the    size of    the font.
  254.  
  255.        --mm,, ----mmaaiill
  256.            Send a mail notification    to user    after  the  print
  257.            job has been completed.
  258.  
  259.        --MM _n_a_m_e,,    ----mmeeddiiaa==_n_a_m_e
  260.            Select  an  output media    _n_a_m_e.  EEnnssccrriipptt's default
  261.            output media is @@mmeeddiiaa@@.
  262.  
  263.        --nn _n_u_m,, ----ccooppiieess==_n_u_m
  264.            Print _n_u_m copies    of each    page.
  265.  
  266.        --NN _n_l,, ----nneewwlliinnee==_n_l
  267.            Select the _n_e_w_l_i_n_e character.  The possible values
  268.            for  _n_l    are: nn (unix newline, 0xa hex) and rr (mac
  269.            newline,    0xd hex).
  270.  
  271.        --oo _f_i_l_e An alias    for the    option --pp, ----oouuttppuutt.
  272.  
  273.        --OO,, ----mmiissssiinngg--cchhaarraacctteerrss
  274.            Print a listing of character codes which     couldn't
  275.            be printed.
  276.  
  277.        --pp _f_i_l_e,,    ----oouuttppuutt==_f_i_l_e
  278.            Leave  the  output  to  file _f_i_l_e.  If the _f_i_l_e is
  279.            `-', enscript sends the    output    to  the     standard
  280.            output ssttddoouutt.
  281.  
  282.        --PP _n_a_m_e,,    ----pprriinntteerr==_n_a_m_e
  283.            Spool the output    to the printer _n_a_m_e.
  284.  
  285.        --qq,, ----qquuiieett,, ----ssiilleenntt
  286.            Make eennssccrriipptt really quiet.  Only fatal error mes
  287.            sages are printed to _s_t_d_e_r_r.
  288.  
  289.        --rr,, ----llaannddssccaappee
  290.            Print  in  the  landscape  mode;     rotate     page  90
  291.            degrees.
  292.  
  293.        --RR,, ----ppoorrttrraaiitt
  294.            Print in    the portrait mode (default).
  295.  
  296.        --ss _n_u_m,, ----bbaasseelliinneesskkiipp==_n_u_m
  297.            Specify    the  baseline  skip in PostScript points.
  298.            The number _n_u_m can be given as a     decimal  number.
  299.            When eennssccrriipptt moves from    line to    line, the current
  300.            point _y coordinate is moved  (_f_o_n_t  _p_o_i_n_t  _s_i_z_e    _+
  301.            _b_a_s_e_l_i_n_e_s_k_i_p)  points  down.  The default baseline
  302.            skip is 1.
  303.  
  304.        --SS _k_e_y[::_v_a_l_u_e],, ----ssttaattuussddiicctt==_k_e_y[::_v_a_l_u_e]
  305.            Pass a  statusdict  definition  to  the    generated
  306.            PostScript  output.  If no value    is given, the key
  307.            _k_e_y is removed from the definitions.
  308.  
  309.            The statusdict operators    are implementation depen
  310.            dant;  see  the    printer's  documentation  for the
  311.            details.
  312.  
  313.            For example, the    command
  314.  
  315.            eennssccrriipptt    --SSsseettppaappeerrttrraayy::11 ffoooo..ttxxtt
  316.  
  317.            prints the file _f_o_o_._t_x_t by using     paper    from  the
  318.            paper  tray  1 (assuming    that the printer supports
  319.            paper tray selection).
  320.  
  321.        --tt _t_i_t_l_e,, ----ttiittllee==_t_i_t_l_e
  322.            Set banner page's job title to _t_i_t_l_e.  The  option
  323.            sets also the name of the input file ssttddiinn.
  324.  
  325.        --TT _n_u_m,, ----ttaabbssiizzee==_n_u_m
  326.            Set  the     tabulator  size  to _n_u_m characters.  The
  327.            default is 8.
  328.  
  329.        --uu[_t_e_x_t],, ----uunnddeerrllaayy[==_t_e_x_t]
  330.            Print the  string  _t_e_x_t    under  every  page.   The
  331.            properties  of  the  text  can be changed with the
  332.            options      ----uull--aannggllee,     ----uull--ffoonntt,    ----uull--ggrraayy,
  333.            ----uull--ppoossiittiioonn, and ----uull--ssttyyllee.
  334.  
  335.            If  no _t_e_x_t is given, the underlay is not printed.
  336.            This can    be used    to remove an underlay  text  that
  337.            was  specified  with  the `UUnnddeerrllaayy' configuration
  338.            file option.
  339.  
  340.        --UU _n_u_m,, ----nnuupp==_n_u_m
  341.            Print _n_u_m logical pages on each output page  (N-up
  342.            printing).  The values _n_u_m must be a power of 2.
  343.  
  344.        --vv,, ----vveerrbboossee[==_l_e_v_e_l]
  345.            Tell what eennssccrriipptt is doing.
  346.  
  347.        --VV,, ----vveerrssiioonn
  348.            Print eennssccrriipptt version information and exit.
  349.  
  350.        --ww [_l_a_n_g],, ----llaanngguuaaggee[==_l_a_n_g]
  351.            Generate    output for the language    _l_a_n_g.  The possi
  352.            ble values for _l_a_n_g are:
  353.  
  354.            PPoossttSSccrriipptt
  355.                generate    PostScript (default)
  356.  
  357.            hhttmmll    generate    HTML
  358.  
  359.            oovveerrssttrriikkee
  360.                generate    overstrikes (line printers, less)
  361.  
  362.            rrttff     generate    RTF (Rich Text Format)
  363.  
  364.            aannssii    generate    ANSI terminal control codes
  365.  
  366.        --XX _n_a_m_e,,    ----eennccooddiinngg==_n_a_m_e
  367.            Use  the     input encoding    _n_a_m_e.  Currently eennssccrriipptt
  368.            supports    the following encodings:
  369.  
  370.            8888559911,, llaattiinn11
  371.                ISO-8859-1   (ISO   Latin1)    (eennssccrriipptt's
  372.                default encoding).
  373.  
  374.            8888559922,, llaattiinn22
  375.                ISO-8859-2 (ISO Latin2)
  376.  
  377.            8888559933,, llaattiinn33
  378.                ISO-8859-3 (ISO Latin3)
  379.  
  380.            8888559944,, llaattiinn44
  381.                ISO-8859-4 (ISO Latin4)
  382.  
  383.            8888559955,, ccyyrriilllliicc
  384.                ISO-8859-5 (ISO Cyrillic)
  385.  
  386.            8888559977,, ggrreeeekk
  387.                ISO-8859-7 (ISO Greek)
  388.  
  389.            8888559999,, llaattiinn55
  390.                ISO-8859-9 (ISO Latin5)
  391.  
  392.            888855991100,, llaattiinn66
  393.                ISO-8859-10 (ISO    Latin6)
  394.  
  395.            aasscciiii   7-bit ascii
  396.  
  397.            aasscciiiiffiissee,, aasscciiiiffii,, aasscciiiissee
  398.                7-bit  ascii  with some scandinavian (Fin
  399.                land, Sweden) extensions
  400.  
  401.            aasscciiiiddkknnoo,, aasscciiiiddkk,, aasscciiiinnoo
  402.                7-bit ascii with    some  scandinavian  (Den
  403.                mark, Norway) extensions
  404.  
  405.            iibbmmppcc,, ppcc,, ddooss
  406.                IBM PC charset
  407.  
  408.            mmaacc     Mac charset
  409.  
  410.            vvmmss     VMS multinational charset
  411.  
  412.            hhpp88     HP Roman-8 charset
  413.  
  414.            kkooii88    Adobe Standard Cyrillic Font KOI8 charset
  415.  
  416.            ppss,, PPSS  PostScript font's default encoding
  417.  
  418.            ppssllaattiinn11,, IISSOOLLaattiinn11EEnnccooddiinngg
  419.                PostScript  interpreter's `ISOLatin1Encod
  420.                ing'
  421.  
  422.        --zz,, ----nnoo--ffoorrmmffeeeedd
  423.            Turn off    the form feed  character  interpretation.
  424.            The  form  feed characters are interpreted as they
  425.            were newline characters.
  426.  
  427.        --ZZ,, ----ppaassss--tthhrroouugghh
  428.            Pass through all    PostScript and PCL files  without
  429.            any  modifications.  This allows    that eennssccrriipptt can
  430.            be used as a lp filter.
  431.  
  432.            The PostScript files are    recognized by looking  up
  433.            the  `%!'  magic     cookie    from the beginning of the
  434.            file. NNoottee!! EEnnssccrriipptt recognized also  the  Windoze
  435.            damaged `^D%!' cookie.
  436.  
  437.            The  PCL     files    are  recognized    by looking up the
  438.            `^[E' or    `^[%' magic cookies from the beginning of
  439.            the file.
  440.  
  441.        ----ccoolloorr[==_b_o_o_l]
  442.            Use colors in the highlighting outputs.
  443.  
  444.        ----ccoonnttiinnuuoouuss--lliinnee--nnuummbbeerrss
  445.            Don't  reset  the  printed  page     number    to one on
  446.            every file.  If you print  many    files,    the  page
  447.            numbers    will continue incrementing throughout all
  448.            of the files.
  449.  
  450.        ----ddoowwnnllooaadd--ffoonntt==_f_o_n_t_n_a_m_e
  451.            Include the font    description file  (_._p_f_a     or  _._p_f_b
  452.            file)  of  the font _f_o_n_t_n_a_m_e to the generated out
  453.            put.
  454.  
  455.        ----eexxtteennddeedd--rreettuurrnn--vvaalluueess
  456.            Enable extended    return    values.      As  a     default,
  457.            eennssccrriipptt     returns 1 on error and    0 otherwise.  The
  458.            extended    return values give more    details    about the
  459.            printing     operation.  See the section RREETTUURRNN VVAALLUUEE
  460.            for the details.
  461.  
  462.        ----ffiilltteerr--ssttddiinn==_n_a_m_e
  463.            Specify how the ssttddiinn is    shown to the  input  fil
  464.            ter.   The  default  value is an    empty string ("")
  465.            but some    programs require that the ssttddiinn    is called
  466.            something else, usually "-".
  467.  
  468.        ----ffooootteerr==_f_o_o_t_e_r
  469.            Use  the     text _f_o_o_t_e_r as    a page footer.    Otherwise
  470.            the option works    like the ----hheeaaddeerr option
  471.  
  472.        ----hh--ccoolluummnn--hheeiigghhtt==_h_e_i_g_h_t
  473.            Set the horizontal  column  height  to  be  _h_e_i_g_h_t
  474.            PostScript  points.   The option    sets the formfeed
  475.            type to hhoorriizzoonnttaall--ccoolluummnnss.
  476.  
  477.        ----hheellpp  Print a short help message and exit.
  478.  
  479.        ----hheellpp--hhiigghhlliigghhtt
  480.            Describe    all supported ----hhiigghhlliigghhtt  languages  and
  481.            file formats.
  482.  
  483.        ----hhiigghhlliigghhtt--bbaarr--ggrraayy==_g_r_a_y
  484.            Specify    the  gray level    which is used in printing
  485.            the highlight bars.
  486.  
  487.        ----lliisstt--mmeeddiiaa
  488.            List the    names of all known output media    and  exit
  489.            successfully.
  490.  
  491.        ----mmaarrggiinnss==_l_e_f_t::_r_i_g_h_t::_t_o_p::_b_o_t_t_o_m
  492.            Adjust  the  page  marginals  to     be exactly _l_e_f_t,
  493.            _r_i_g_h_t, _t_o_p and _b_o_t_t_o_m PostScript    points.      Any  of
  494.            the  arguments can be left empty    in which case the
  495.            default value is    used.
  496.  
  497.        ----mmaarrkk--wwrraappppeedd--lliinneess[==_s_t_y_l_e]
  498.            Mark wrapped lines in the output     with  the  style
  499.            _s_t_y_l_e.  The possible values for the _s_t_y_l_e are:
  500.  
  501.            nnoonnee    do not mark them    (default)
  502.  
  503.            pplluuss    print  a     plus (+) character to the end of
  504.                each wrapped line
  505.  
  506.            bbooxx     print a black  box  to  the  end     of  each
  507.                wrapped line
  508.  
  509.            aarrrrooww   print  a     small    arrow  to the end of each
  510.                wrapped line
  511.  
  512.        ----nnoonn--pprriinnttaabbllee--ffoorrmmaatt==_f_o_r_m_a_t
  513.            Specify    how  the  non-printable     characters   are
  514.            printed.     The possible values for the _f_o_r_m_a_t are:
  515.  
  516.            ccaarreett   caret notation: `^@', `^A', `^B', ...
  517.  
  518.            ooccttaall   octal  notation:     `\000',  `\001', `\002',
  519.                ... (default)
  520.  
  521.            qquueessttiioonnmmaarrkk
  522.                replace non-printable  characters  with    a
  523.                question    mark `?'
  524.  
  525.            ssppaaccee   replace    non-printable  characters  with    a
  526.                space ` '
  527.  
  528.        ----nnuupp--ccoolluummnnwwiissee
  529.            Change the layout of the     sub-pages  in    the  N-up
  530.            printing    from row-wise to columnwise.
  531.  
  532.        ----nnuupp--xxppaadd==_n_u_m
  533.            Set the page x-padding of the _n-up printing to _n_u_m
  534.            PostScript points.  The default is 10 points.
  535.  
  536.        ----nnuupp--yyppaadd==_n_u_m
  537.            Set the page y-padding of the _n-up printing to _n_u_m
  538.            PostScript points.  The default is 10 points.
  539.  
  540.        ----ppaaggee--llaabbeell--ffoorrmmaatt==_f_o_r_m_a_t
  541.            Set  the     page  label  format to    _f_o_r_m_a_t.     The page
  542.            label format specifies  how  the     labels     for  the
  543.            `%%Page:'  PostScript comments are formatted.  The
  544.            possible    values are:
  545.  
  546.            sshhoorrtt   Print the current pagenumber: `%%Page: (1)
  547.                1' (default)
  548.  
  549.            lloonngg    Print the current filename and pagenumber:
  550.                `%%Page:    (main.c:  1) 1'
  551.  
  552.        ----ppss--lleevveell==_l_e_v_e_l
  553.            Set the PostScript language  level  that     eennssccrriipptt
  554.            uses for    its output to _l_e_v_e_l.  The possible values
  555.            are 11, and 22.
  556.  
  557.        ----pprriinntteerr--ooppttiioonnss==_o_p_t_i_o_n_s
  558.            Pass extra options to the printer command.
  559.  
  560.        ----rroottaattee--eevveenn--ppaaggeess
  561.            Rotate each even-numbered page 180 degrees.
  562.  
  563.        ----sslliiccee==_n_u_m
  564.            Print the vertical slice    _n_u_m.  The slices are ver
  565.            tical  regions of input files.  A new slice starts
  566.            from the    point where the    line would  otherwise  be
  567.            wrapped to the next line.  The slice numbers start
  568.            from 1.
  569.  
  570.        ----ssttyyllee==_s_t_y_l_e
  571.            Set the highlighting style to _s_t_y_l_e.  The possible
  572.            values  are:  aa22ppss, eemmaaccss, eemmaaccss--vveerrbboossee, iiffhh, and
  573.            mmssvvcc.
  574.  
  575.        ----sswwaapp--eevveenn--ppaaggee--mmaarrggiinnss
  576.            Swap left and right page    margins    for even-numbered
  577.            pages.
  578.  
  579.        ----ttoocc   Print  a     table of contents to the end of the out
  580.            put.
  581.  
  582.        ----wwoorrdd--wwrraapp
  583.            Wrap long lines from word boundaries.
  584.  
  585.        ----uull--aannggllee==_a_n_g_l_e
  586.            Set the angle of    the underlay text to _a_n_g_l_e.  As    a
  587.            default,    the angle is aattaann((--dd__ppaaggee__hh,, dd__ppaaggee__ww)).
  588.  
  589.        ----uull--ffoonntt==_n_a_m_e
  590.            Select  a font for the underlay text.  The default
  591.            underlay    font is    TTiimmeess--RRoommaann220000.
  592.  
  593.        ----uull--ggrraayy==_n_u_m
  594.            Print the underlay text with the    gray value _n_u_m (0
  595.            ... 1), the default gray    value is .8.
  596.  
  597.        ----uull--ppoossiittiioonn==_p_o_s_i_t_i_o_n___s_p_e_c
  598.            Set  the    underlay text's    starting position accord
  599.            ing to the _p_o_s_i_t_i_o_n___s_p_e_c.  The position specifica
  600.            tion  must  be  given  in  format: `_s_i_g_n    _x_p_o_s _s_i_g_n
  601.            _y_p_o_s', where the    _s_i_g_n must be  `+'  or  `-'.   The
  602.            positive     dimensions  are  measured from    the lower
  603.            left corner and the negative dimensions    from  the
  604.            upper  right  corner.  For example, the specifica
  605.            tion `+0-0' specifies the upper    left  corner  and
  606.            `-0+0' specifies    the lower right    corner.
  607.  
  608.        ----uull--ssttyyllee==_s_t_y_l_e
  609.            Set  the    underlay text's    style to _s_t_y_l_e.     The pos
  610.            sible values for    _s_t_y_l_e are:
  611.  
  612.            oouuttlliinnee print outline underlay texts (default)
  613.  
  614.            ffiilllleedd  print filled underlay texts
  615.  
  616.  
  617. CCOONNFFIIGGUURRAATTIIOONN FFIILLEESS
  618.        EEnnssccrriipptt    reads configuration information    from the  follow
  619.        ing  sources  (in this order): command line options, envi
  620.        ronment variable    EENNSSCCRRIIPPTT, user's  personal  configuration
  621.        file    ($$HHOOMMEE//..eennssccrriippttrrcc),   site   configuration   file
  622.        (@@SSYYSSCCOONNFFDDIIRR@@//eennssccrriippttssiittee..ccffgg) and system's  global  con
  623.        figuration file (@@SSYYSSCCOONNFFDDIIRR@@//eennssccrriipptt..ccffgg).
  624.  
  625.        The configuration files have the    following format:
  626.  
  627.        Empty lines and lines starting with `#' are comments.
  628.  
  629.        All other lines are option lines    and have format:
  630.  
  631.        _o_p_t_i_o_n [_a_r_g_u_m_e_n_t_s _._._.].
  632.  
  633.        The following options can be specified:
  634.  
  635.        AAcccceeppttCCoommppoossiitteeCChhaarraacctteerrss:: _b_o_o_l
  636.            Specify    whether    PostScript font's composite char
  637.            acters are accepted as printable    or if they should
  638.            be  considered as non-existent.    The default value
  639.            is false    (0).
  640.  
  641.        AAFFMMPPaatthh::    _p_a_t_h
  642.            Specifies the search path for the _A_F_M files.
  643.  
  644.        AAppppeennddCCttrrllDD:: _b_o_o_l
  645.            Specify if the Control-D    (^D) character should  be
  646.            appended     to  the  end of the output.  The default
  647.            value is    false (0).
  648.  
  649.        CClleeaann77BBiitt:: _b_o_o_l
  650.            Specify    how  characters     greater  than    127   are
  651.            printed.      The  valuee  true  (1)  generates 7-bit
  652.            clean code by escaping all characters greater than
  653.            127  to    the  backslash-octal  notation (default).
  654.            The value false    (0)  generates    8-bit  PostScript
  655.            code leaving all    characters untouched.
  656.  
  657.        DDeeffaauullttEEnnccooddiinngg::    _n_a_m_e
  658.            Select  the  default input encoding.  The encoding
  659.            name _n_a_m_e can be    one of the values of  the  option
  660.            --XX, ----eennccooddiinngg.
  661.  
  662.        DDeeffaauullttFFaannccyyHHeeaaddeerr:: _n_a_m_e
  663.            Select  the  default  fancy  header.   The default
  664.            header is used when the option --GG is specified  or
  665.            the  option  ----ffaannccyy--hheeaaddeerr  is    given  without an
  666.            argument.  The system-wide default is  `eennssccrriipptt'.
  667.  
  668.        DDeeffaauullttMMeeddiiaa:: _n_a_m_e
  669.            Select the default output media.
  670.  
  671.        DDeeffaauullttOOuuttppuuttMMeetthhoodd:: _m_e_t_h_o_d
  672.            Select  the  default target to which the    generated
  673.            output is  sent.      The  possible     values     for  the
  674.            _m_e_t_h_o_d are:
  675.  
  676.            pprriinntteerr send output to printer (default)
  677.  
  678.            ssttddoouutt  send output to ssttddoouutt
  679.  
  680.        DDoowwnnllooaaddFFoonntt:: _f_o_n_t_n_a_m_e
  681.            Include    the  font  description    file  of the font
  682.            _f_o_n_t_n_a_m_e    to the generated output.
  683.  
  684.        EEssccaappeeCChhaarr:: _n_u_m
  685.            Specify    the  escape  character    for  the  special
  686.            escapes.     The default value is 0.
  687.  
  688.        FFoorrmmFFeeeeddTTyyppee:: _t_y_p_e
  689.            Specify    what  to  do when a formfeed character is
  690.            encountered from    the input.  The     possible  values
  691.            for _t_y_p_e    are:
  692.  
  693.            ccoolluummnn  move  to     the beginning of the next column
  694.                (default)
  695.  
  696.            ppaaggee    move to the beginning of    the next page
  697.  
  698.        GGeenneerraatteePPaaggeeSSiizzee:: _b_o_o_l
  699.            Specify whether the PPaaggeeSSiizzee page  device  setting
  700.            is   generated  to  the    PostScript  output.   The
  701.            default value is    true (1).
  702.  
  703.        HHiigghhlliigghhttBBaarrGGrraayy:: _g_r_a_y
  704.            Specify the gray    level which is used to print  the
  705.            highlight bars.
  706.  
  707.        HHiigghhlliigghhttBBaarrss:: _n_u_m
  708.            Specify    how high the highlight bars are    in lines.
  709.            The default value is 0 which means that    no  high
  710.            light bars are printed.
  711.  
  712.        LLiibbrraarryyPPaatthh:: _p_a_t_h
  713.            Specifies the eennssccrriipptt's    library    path that is used
  714.            to lookup various resources.  The default path is:
  715.            `@DATADIR@/enscript:_h_o_m_e/.enscript'.    Where  the
  716.            _h_o_m_e is the user's home directory.
  717.  
  718.        MMaarrkkWWrraappppeeddLLiinneess:: _s_t_y_l_e
  719.            Mark wraped lines in the     output     with  the  style
  720.            _s_t_y_l_e.  The possible values for the _f_o_r_m_a_t are the
  721.            same    which    can    be    given    for     the
  722.            ----mmaarrkk--wwrraappppeedd--lliinneess option.
  723.  
  724.        MMeeddiiaa:: _n_a_m_e _w_i_d_t_h _h_e_i_g_h_t    _l_l_x _l_l_y    _u_r_x _u_r_y
  725.            Add  a  new  output media with the name _n_a_m_e.  The
  726.            physical    dimensions of the  media  are  _w_i_d_t_h  and
  727.            _h_e_i_g_h_t.     The  bounding box of the Media    is speci
  728.            fied by the points  (_l_l_x,  _l_l_y)    and  (_u_r_x,  _u_r_y).
  729.            EEnnssccrriipptt     prints     all graphics inside the bounding
  730.            box of the media.
  731.  
  732.            User can    select this media with option --MM _n_a_m_e.
  733.  
  734.        NNooJJoobbHHeeaaddeerrSSwwiittcchh:: _s_w_i_t_c_h
  735.            Specify the spooler option to suppress  the  print
  736.            job  header  page.   This  option is passed to the
  737.            printer spooler when  the  eennssccrriipptt's  option  --hh,
  738.            ----nnoo--jjoobb--hheeaaddeerr is selected.
  739.  
  740.        NNoonnPPrriinnttaabblleeFFoorrmmaatt:: _f_o_r_m_a_t
  741.            Specify     how  the  non-printable  characters  are
  742.            printed.     The possible values for _f_o_r_m_a_t     are  the
  743.            same  which  can     be  given  for     the ----nnoonn--pprriinntt
  744.            aabbllee--ffoorrmmaatt option.
  745.  
  746.        OOuuttppuuttFFiirrssttLLiinnee::    _l_i_n_e
  747.            Set the PostScript output's first  line    to  _l_i_n_e.
  748.            The  default  value  is    PPSS--AAddoobbee--33..00.  Since some
  749.            printers    do not like DSC    levels greater than  2.0,
  750.            this option can be used to change the output first
  751.            line  to     something  more  suitable   like   %%!!PPSS--
  752.            AAddoobbee--22..00 or %%!!.
  753.  
  754.        PPaaggeeLLaabbeellFFoorrmmaatt::    _f_o_r_m_a_t
  755.            Set the page label format to _f_o_r_m_a_t.  The possible
  756.            values for _f_o_r_m_a_t are the same which can    be  given
  757.            for the ----ppaaggee--llaabbeell--ffoorrmmaatt option.
  758.  
  759.        PPaaggeePPrreeffeeeedd:: _b_o_o_l
  760.            Enable  / disable page prefeed.    The default value
  761.            is false    (0).
  762.  
  763.        PPoossttSSccrriippttLLeevveell::    _l_e_v_e_l
  764.            Set the PostScript language level,  that     eennssccrriipptt
  765.            uses  for its output, to    _l_e_v_e_l.    The possible val
  766.            ues for _l_e_v_e_l are the same which    can be given  for
  767.            the ----ppss--lleevveell option.
  768.  
  769.        PPrriinntteerr::    _n_a_m_e
  770.            Names  the printer to which the output is spooled.
  771.  
  772.        QQuueeuueePPaarraamm:: _n_a_m_e
  773.            The spooler command switch to select  the  printer
  774.            queue,  e.g. --PP in llpprr --PPppss.  This option can also
  775.            be used to pass other flags to  the  spooler  com
  776.            mand.   These  options  must  be     given before the
  777.            queue switch.
  778.  
  779.        SSeettPPaaggeeDDeevviiccee:: _k_e_y[::_v_a_l_u_e]
  780.            Pass a page device  definition  to  the    generated
  781.            PostScript output.
  782.  
  783.        SSppoooolleerr::    _n_a_m_e
  784.            Names the printer spooler command.  EEnnssccrriipptt pipes
  785.            generated PostScript to the command _n_a_m_e.
  786.  
  787.        SSttaatteessBBiinnaarryy:: _p_a_t_h
  788.            Define an absolute path to the ssttaatteess program.
  789.  
  790.        SSttaatteessCCoolloorr:: _b_o_o_l
  791.            Should the ssttaatteess program generate color     outputs.
  792.  
  793.        SSttaatteessCCoonnffiiggFFiillee:: _f_i_l_e
  794.            Read  highlighting  states  configuration from the
  795.            file   _f_i_l_e.    The   default   config    file   is
  796.            `@DATADIR@/enscript/hl/enscript.st'.
  797.  
  798.        SSttaatteessHHiigghhlliigghhttSSttyyllee:: _s_t_y_l_e
  799.            Set the highlight style to _s_t_y_l_e.
  800.  
  801.        SSttaatteessPPaatthh:: _p_a_t_h
  802.            Define  the  path  for  the  ssttaatteess  program.  The
  803.            ssttaatteess program will lookup  its    state  definition
  804.            files  from  this  path.      The  default    value  is
  805.            `$HOME/.enscript:@DATADIR@/enscript/hl'.
  806.  
  807.        SSttaattuussDDiicctt:: _k_e_y[::_v_a_l_u_e]
  808.            Pass a  statusdict  definition  to  the    generated
  809.            PostScript output.
  810.  
  811.        TTOOCCFFoorrmmaatt:: _f_o_r_m_a_t
  812.            Format  table  of contents entries with the format
  813.            string _f_o_r_m_a_t.  The format string _f_o_r_m_a_t    can  con
  814.            tain  the  same    escapes     which are used    to format
  815.            header strings with the `%Format' special comment.
  816.  
  817.        UUnnddeerrllaayy:: _t_e_x_t
  818.            Print string _t_e_x_t under every page.
  819.  
  820.        UUnnddeerrllaayyAAnnggllee:: _n_u_m
  821.            Set the angle of    the underlay text to _n_u_m.
  822.  
  823.        UUnnddeerrllaayyFFoonntt:: _f_o_n_t_s_p_e_c
  824.            Select a    font for the underlay text.
  825.  
  826.        UUnnddeerrllaayyGGrraayy:: _n_u_m
  827.            Print the underlay text with the    gray value _n_u_m.
  828.  
  829.        UUnnddeerrllaayyPPoossiittiioonn:: _p_o_s_i_t_i_o_n___s_p_e_c
  830.            Set  the    underlay text's    starting position accord
  831.            ing to the _p_o_s_i_t_i_o_n___s_p_e_c.
  832.  
  833.        UUnnddeerrllaayySSttyyllee:: _s_t_y_l_e
  834.            Set the underlay    text's style to    _s_t_y_l_e.
  835.  
  836.  
  837. FFAANNCCYY HHEEAADDEERRSS
  838.        Users can create    their own fancy     headers  by  creating    a
  839.        header  description  file  and  placing    it in a    directory
  840.        which is    in eennssccrriipptt's library  path.   The  name  of  the
  841.        header  file  must be in    format:    `_h_e_a_d_e_r_n_a_m_e.hdr'.  Header
  842.        can be selected by giving  option:  ----ffaannccyy--hheeaaddeerr==_h_e_a_d_e_r_
  843.        _n_a_m_e.
  844.  
  845.        Header  description  file  contains  PostScript    code that
  846.        paints the header.  Description file must  provide  proce
  847.        dure  ddoo__hheeaaddeerr    which is called    by eennssccrriipptt at the begin
  848.        ning of every page.
  849.  
  850.        Header description file contains    two parts:  comments  and
  851.        code.  Parts are    separated by a line containing text:
  852.  
  853.        % -- code follows this line --
  854.  
  855.        EEnnssccrriipptt     copies    only the code part of description file to
  856.        the generated PostScript    output.     The  comments    part  can
  857.        contain    any data, it is    not copied.  If    separator line is
  858.        missing,    no data    is copied to output.
  859.  
  860.        EEnnssccrriipptt    defines    following constants which can be used  in
  861.        header description files:
  862.  
  863.        dd__ppaaggee__ww           page width
  864.  
  865.        dd__ppaaggee__hh           page height
  866.  
  867.        dd__hheeaaddeerr__xx      header lower left _x coordinate
  868.  
  869.        dd__hheeaaddeerr__yy      header lower left _y coordinate
  870.  
  871.        dd__hheeaaddeerr__ww      header width
  872.  
  873.        dd__hheeaaddeerr__hh      header height
  874.  
  875.        dd__ffooootteerr__xx      footer lower left _x coordinate
  876.  
  877.        dd__ffooootteerr__yy      footer lower left _y coordinate
  878.  
  879.        dd__ffooootteerr__ww      footer width
  880.  
  881.        dd__ffooootteerr__hh      footer height
  882.  
  883.        dd__oouuttppuutt__ww      width of    the text output    area
  884.  
  885.        dd__oouuttppuutt__hh      height of the text output area
  886.  
  887.        uusseerr__hheeaaddeerr__pp   predicate  which    tells if user has defined
  888.                his/her own header string: ttrruuee/ffaallssee
  889.  
  890.        uusseerr__hheeaaddeerr__lleefftt__ssttrr
  891.                if uusseerr__hheeaaddeerr__pp    is ttrruuee, this is the left
  892.                field  of the user supplied header string.
  893.  
  894.        uusseerr__hheeaaddeerr__cceenntteerr__ssttrr
  895.                if uusseerr__hheeaaddeerr__pp    is ttrruuee, this is the cen
  896.                ter  field  of  the  user  supplied header
  897.                string
  898.  
  899.        uusseerr__hheeaaddeerr__rriigghhtt__ssttrr
  900.                if uusseerr__hheeaaddeerr__pp     is  ttrruuee,  this  is  the
  901.                right  field  of     the user supplied header
  902.                string
  903.  
  904.        uusseerr__ffooootteerr__pp   predicate which tells if    user has  defined
  905.                his/her own footer string: ttrruuee/ffaallssee
  906.  
  907.        uusseerr__ffooootteerr__lleefftt__ssttrr
  908.                if uusseerr__ffooootteerr__pp    is ttrruuee, this is the left
  909.                field of    the user supplied footer  string.
  910.  
  911.        uusseerr__ffooootteerr__cceenntteerr__ssttrr
  912.                if uusseerr__ffooootteerr__pp    is ttrruuee, this is the cen
  913.                ter field  of  the  user     supplied  footer
  914.                string
  915.  
  916.        uusseerr__ffooootteerr__rriigghhtt__ssttrr
  917.                if  uusseerr__ffooootteerr__pp  is  ttrruuee,  this  is the
  918.                right field of the  user     supplied  footer
  919.                string
  920.  
  921.        HHFF           standard       header    font    (from    --FF,
  922.                ----hheeaaddeerr--ffoonntt  option).      This     can   be
  923.                selected     simply     by invoking command: `HHFF
  924.                sseettffoonntt'.
  925.  
  926.        ppaaggeennuumm           the number of the current page
  927.  
  928.        ffnnaammee           the  full  name    of   the   printed   file
  929.                (/foo/bar.c)
  930.  
  931.        ffddiirr           the directory part of the file name (/foo)
  932.  
  933.        ffttaaiill           file  name  without  the     directory   part
  934.                (bar.c)
  935.  
  936.        ggss__llaanngguuaaggeelleevveell
  937.                PostScript  interpreter's  language  level
  938.                (currently 1 or 2)
  939.  
  940.  
  941.        You can also use    the following special  comments     to  cus
  942.        tomize  your  headers  and  to specify some extra options.
  943.        Special comments    are like DSC comments but they start with
  944.        a  single  `%'  character; special comments start from the
  945.        beginning of the    line and they have the following syntax:
  946.  
  947.        %_c_o_m_m_e_n_t_n_a_m_e: _o_p_t_i_o_n_s
  948.  
  949.        Currently eennssccrriipptt support the following    special    comments:
  950.  
  951.        %%FFoorrmmaatt::    _n_a_m_e _f_o_r_m_a_t
  952.            Define a    new string constant _n_a_m_e according to the
  953.            format string _f_o_r_m_a_t.  Format  string  start  from
  954.            the  first  non-space character and it ends to the
  955.            end of the line.     Format    string can  contain  gen
  956.            eral  `%'  escapes  and    input  file  related  `$'
  957.            escapes.     Currently  following  escapes    are  sup
  958.            ported:
  959.  
  960.            %%%%      character `%'
  961.  
  962.            $$$$      character `$'
  963.  
  964.            $$%%      current page number
  965.  
  966.            $$==      number of pages in the current file
  967.  
  968.            $$pp      number of pages processed so far
  969.  
  970.            $$((_V_A_R))  value of    the environment    variable _V_A_R.
  971.  
  972.            %%cc      trailing     component of the current working
  973.                directory
  974.  
  975.            %%CC ($$CC) current time (file modification    time)  in
  976.                `hh:mm:ss' format
  977.  
  978.            %%dd      current working directory
  979.  
  980.            %%DD ($$DD) current    date  (file modification date) in
  981.                `yy-mm-dd' format
  982.  
  983.            %%DD{{_s_t_r_i_n_g}} ($$DD{{_s_t_r_i_n_g}})
  984.                format string _s_t_r_i_n_g with the  strftime(3)
  985.                function.   `%%DD{{}}'  refers  to the current
  986.                date and    `$$DD{{}}' to the input  file's  last
  987.                modification date.
  988.  
  989.            %%EE ($$EE) current    date  (file modification date) in
  990.                `yy/mm/dd' format
  991.  
  992.            %%FF ($$FF) current date (file modification    date)  in
  993.                `dd.mm.yyyy' format
  994.  
  995.            %%HH      document    title
  996.  
  997.            $$LL      number of lines in the current input file.
  998.                This is valid only for the toc entries, it
  999.                can't be    used in    header strings.
  1000.  
  1001.            %%mm      the hostname up to the first `.'    character
  1002.  
  1003.            %%MM      the full    hostname
  1004.  
  1005.            %%nn      the user    login name
  1006.  
  1007.            $$nn      input file name without the directory part
  1008.  
  1009.            %%NN      the  user's pw_gecos field up to    the first
  1010.                `,' character
  1011.  
  1012.            $$NN      the full    input file name
  1013.  
  1014.            %%tt ($$tt) current time (file modification    time)  in
  1015.                12-hour am/pm format
  1016.  
  1017.            %%TT ($$TT) current    time  (file modification time) in
  1018.                24-hour format `hh:mm'
  1019.  
  1020.            %%** ($$**) current time (file modification    time)  in
  1021.                24-hour format with seconds `hh:mm:ss'
  1022.  
  1023.            $$vv      the  sequence  number of    the current input
  1024.                file
  1025.  
  1026.            $$VV      the sequence number of the  current  input
  1027.                file in the `Table of Contents' format: if
  1028.                the ----ttoocc option    is given, escape  expands
  1029.                to  `_n_u_m-';  if    the  ----ttoocc  is not given,
  1030.                escape expands to an empty string.
  1031.  
  1032.            %%WW ($$WW) current date (file modification    date)  in
  1033.                `mm/dd/yy' format
  1034.  
  1035.            All  format  directives    except    `$='  can also be
  1036.            given in    format
  1037.  
  1038.            _e_s_c_a_p_e _w_i_d_t_h _d_i_r_e_c_t_i_v_e
  1039.  
  1040.            where _w_i_d_t_h specifies the width of the  column  to
  1041.            which  the escape is printed.  For example, escape
  1042.            "$5%" will expand to something like " 12".  If the
  1043.            width is    negative, the value will be printed left-
  1044.            justified.
  1045.  
  1046.            For example,  the  `emacs.hdr'  defines    its  date
  1047.            string with the following format    comment:
  1048.  
  1049.            %%FFoorrmmaatt::    eeuurrddaatteessttrr %%EE
  1050.  
  1051.            which expands to:
  1052.  
  1053.            //eeuurrddaatteessttrr ((9966//0011//0088)) ddeeff
  1054.  
  1055.  
  1056.        %%HHeeaaddeerrHHeeiigghhtt:: _h_e_i_g_h_t
  1057.            Allocate     _h_e_i_g_h_t    points space for the page header.
  1058.            The default header height is 36 points.
  1059.  
  1060.        %%FFooootteerrHHeeiigghhtt:: _h_e_i_g_h_t
  1061.            Allocate    _h_e_i_g_h_t points space for    the page  footer.
  1062.            The default footer height is 0 points.
  1063.  
  1064.  
  1065.        According  to  Adobe's  Document     Structuring  Conventions
  1066.        (DSC), all resources needed by a    document must  be  listed
  1067.        in  document's  prolog.    Since user's can create    their own
  1068.        headers,    eennssccrriipptt don't know what resources those  headers
  1069.        use.   That's  why all headers must contain a standard DSC
  1070.        comment that lists all  needed  resources.   For     example,
  1071.        used fonts can be listed    with following comment:
  1072.  
  1073.        %%DocumentNeededResources: font _f_o_n_t_n_a_m_e_1 _f_o_n_t_n_a_m_e_2
  1074.  
  1075.        Comment    can  be    continued to the next line with    the stan
  1076.        dard continuation comment:
  1077.  
  1078.        %%+ font    _f_o_n_t_n_a_m_e_3
  1079.  
  1080.  
  1081. SSPPEECCIIAALL    EESSCCAAPPEESS
  1082.        EEnnssccrriipptt    supports special escape    sequences  which  can  be
  1083.        used  to     add some page formatting commands to ASCII docu
  1084.        ments.  As a default, special  escapes  interpretation  is
  1085.        off,  so     all  ASCII  files print out as    everyone expects.
  1086.        Special escapes    interpretation    is  activated  by  giving
  1087.        option --ee, ----eessccaappeess to eennssccrriipptt.
  1088.  
  1089.        All  special escapes start with the escape character.  The
  1090.        default escape character    is ^@ (octal 000); escape charac
  1091.        ter  can     be  changed  with  option --ee, ----eessccaappeess.  Escape
  1092.        character  is  followed    by  escape's  name  and     optional
  1093.        options and arguments.
  1094.  
  1095.        Currently eennssccrriipptt supports following escapes:
  1096.  
  1097.        bbggccoolloorr change  the  text background color.  The    syntax of
  1098.            the escape is:
  1099.  
  1100.            ^@bgcolor{_r_e_d _g_r_e_e_n _b_l_u_e}
  1101.  
  1102.            where the color components _r_e_d,    _g_r_e_e_n,    and  blue
  1103.            are  given as decimal numbers between values 0 and
  1104.            1.
  1105.  
  1106.  
  1107.        bbggggrraayy  change the text background color.  The  syntax  of
  1108.            the escape is:
  1109.  
  1110.            ^@bggray{_g_r_a_y}
  1111.  
  1112.            where  _g_r_a_y is the new text background gray value.
  1113.            The default value is 1.0    (white).
  1114.  
  1115.        ccoolloorr   change the text color.  The syntax of  the  escape
  1116.            is:
  1117.  
  1118.            ^@color{_r_e_d _g_r_e_e_n _b_l_u_e}
  1119.  
  1120.            where  color  components     _r_e_d,  _g_r_e_e_n and _b_l_u_e are
  1121.            given as    decimal    numbers    between    values 0 and 1.
  1122.  
  1123.        ccoommmmeenntt comment the rest    of the line including the newline
  1124.            character.  Escape's syntax is:
  1125.  
  1126.            ^@comment _t_e_x_t _n_e_w_l_i_n_e___c_h_a_r_a_c_t_e_r
  1127.  
  1128.        eessccaappee  change  the  escape  character.    The syntax of the
  1129.            escape is:
  1130.  
  1131.            ^@escape{_c_o_d_e}
  1132.  
  1133.            where _c_o_d_e is the decimal code of the  new  escape
  1134.            character.
  1135.  
  1136.        eeppssff    inline  EPS  file  to the document.  The    syntax of
  1137.            the escape is:
  1138.  
  1139.            ^@epsf[_o_p_t_i_o_n_s]{_f_i_l_e_n_a_m_e}
  1140.  
  1141.            where _o_p_t_i_o_n_s is    an optional  sequence  of  option
  1142.            characters  and    values enclosed    with brackets and
  1143.            _f_i_l_e_n_a_m_e    is the name of the EPS file.
  1144.  
  1145.            If _f_i_l_e_n_a_m_e ends    to the `|' character, then  _f_i_l_e_
  1146.            _n_a_m_e  is    assumed    to name    a command that prints EPS
  1147.            data  to     its  standard    output.      In  this  case,
  1148.            eennssccrriipptt    opens a    pipe to    the specified command and
  1149.            reads EPS data from pipe.
  1150.  
  1151.            Following  options  can    be  given  for    the  eeppssff
  1152.            escape:
  1153.  
  1154.            cc       print image centered
  1155.  
  1156.            rr       print image right justified
  1157.  
  1158.            nn       do  not    update    current    point.    Following
  1159.                output is printed to that  position  where
  1160.                the current point was just before the eeppssff
  1161.                escape
  1162.  
  1163.            nnxx      do not update current point _x coordinate
  1164.  
  1165.            nnyy      do not update current point _y coordinate
  1166.  
  1167.            xx_n_u_m    move image's top     left  _x  coordinate  _n_u_m
  1168.                characters from current point _x coordinate
  1169.                (relative position)
  1170.  
  1171.            xx_n_u_maa   set image's top left _x coordinate to  col
  1172.                umn _n_u_m (absolute position)
  1173.  
  1174.            yy_n_u_m    move  image's  top  left     _y coordinate _n_u_m
  1175.                lines from current  line     (relative  posi
  1176.                tion)
  1177.  
  1178.            yy_n_u_maa   set  image's top    left _y coordinate to line
  1179.                _n_u_m (absolute position)
  1180.  
  1181.            hh_n_u_m    set image's height to _n_u_m lines
  1182.  
  1183.            ss_n_u_m    scale image with    factor _n_u_m
  1184.  
  1185.            ssxx_n_u_m   scale image in _x    direction with factor _n_u_m
  1186.  
  1187.            ssyy_n_u_m   scale image in _y    direction with factor _n_u_m
  1188.  
  1189.            As a default, all dimensions are     given    in  lines
  1190.            (vertical)  and    characters (horizontal).  You can
  1191.            also specify other  units  by  appending     an  unit
  1192.            specifier  after    number.     Possible unit specifiers
  1193.            and the corresponding units are:
  1194.  
  1195.            cc       centimeters
  1196.  
  1197.            ii       inches
  1198.  
  1199.            ll       lines or    characters (default)
  1200.  
  1201.            pp       PostScript points
  1202.  
  1203.            For example to print an image one inch  high,  you
  1204.            can  specify  height  by    following options: hh11ii (1
  1205.            inch), hh22..5544cc (2.54 cm),    hh7722pp (72 points).
  1206.  
  1207.        ffoonntt    select current font.  The syntax    of the escape is:
  1208.  
  1209.            ^@font{_f_o_n_t_n_a_m_e[:_e_n_c_o_d_i_n_g]}
  1210.  
  1211.            where  _f_o_n_t_n_a_m_e    is a standard font specification.
  1212.            Special font specification ddeeffaauulltt can be used  to
  1213.            select  the  default body font (eennssccrriipptt's default
  1214.            or the one specified by the  command  line  option
  1215.            --ff, ----ffoonntt).
  1216.  
  1217.            The   optional  argument     _e_n_c_o_d_i_n_g  specifies  the
  1218.            encoding    that should be used  for  the  new  font.
  1219.            Currently  the encoding can only    be the eennssccrriipptt's
  1220.            global input encoding or    ppss.
  1221.  
  1222.        llooaaddxx   load the    current    point X-coordinate from    a  regis
  1223.            ter.  The syntax    of the escape is:
  1224.  
  1225.            ^@loadx{_r_e_g_i_s_t_e_r}
  1226.  
  1227.        ppss      include    raw  PostScript     code to the output.  The
  1228.            syntax of the escape is:
  1229.  
  1230.            ^@ps{_c_o_d_e}
  1231.  
  1232.        ssaavveexx   save the    current    point X-coordinate into    a  regis
  1233.            ter.   The position can later be    restored with the
  1234.            llooaaddxx escape.  The syntax of the    escape is:
  1235.  
  1236.            ^@savex{_r_e_g_i_s_t_e_r}
  1237.  
  1238.        sshhaaddee   highlight regions of text  by  changing    the  text
  1239.            background color.  Escape's syntax is:
  1240.  
  1241.            ^@shade{_g_r_a_y}
  1242.  
  1243.            where  _g_r_a_y is the new text background gray value.
  1244.            The default value is 1.0     (white)  which     disables
  1245.            highlighting.
  1246.  
  1247.  
  1248. PPAAGGEE DDEEVVIICCEE OOPPTTIIOONNSS
  1249.        Page device is a    PostScript level 2 feature that    offers an
  1250.        uniform interface  to  control  printer's  output  device.
  1251.        EEnnssccrriipptt     protects  all    page  device options inside an if
  1252.        block so    they have no  effect  in  level     1  interpreters.
  1253.        Although     all  level  2    interpreters support page device,
  1254.        they do not have    to support all page device options.   For
  1255.        example    some  printers    can print in duplex mode and some
  1256.        can not.     Refer to the documentation of your  printer  for
  1257.        supported options.
  1258.  
  1259.        Here  are  some    usable    page  device options which can be
  1260.        selected    with the --DD, ----sseettppaaggeeddeevviiccee option.  For a  com
  1261.        plete  listing,    see _P_o_s_t_S_c_r_i_p_t _L_a_n_g_u_a_g_e    _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l:
  1262.        section 4.11 Device Setup.
  1263.  
  1264.        CCoollllaattee _b_o_o_l_e_a_n
  1265.            how output is  organized     when  printing     multiple
  1266.            copies
  1267.  
  1268.        DDuupplleexx _b_o_o_l_e_a_n
  1269.            duplex (two side) printing
  1270.  
  1271.        MMaannuuaallFFeeeedd _b_o_o_l_e_a_n
  1272.            manual feed paper tray
  1273.  
  1274.        OOuuttppuuttFFaacceeUUpp _b_o_o_l_e_a_n
  1275.            print output `face up' or `face down'
  1276.  
  1277.        TTuummbbllee _b_o_o_l_e_a_n
  1278.            how opposite sides are positioned in duplex print
  1279.            ing
  1280.  
  1281.  
  1282. PPRRIINNTTIINNGG EEXXAAMMPPLLEESS
  1283.        Following printing examples assume that eennssccrriipptt    uses  the
  1284.        default    configuration.     If  default  actions  have  been
  1285.        changed from the    configuration files, some  examples  will
  1286.        behave differently.
  1287.  
  1288.        eennssccrriipptt    ffoooo..ttxxtt
  1289.            Print file ffoooo..ttxxtt to the default printer.
  1290.  
  1291.        eennssccrriipptt    --PPoossssuu ffoooo..ttxxtt
  1292.            Print file ffoooo..ttxxtt to printer oossssuu.
  1293.  
  1294.        eennssccrriipptt    --ppffoooo..ppss ffoooo..ttxxtt
  1295.            Print file ffoooo..ttxxtt, but leave PostScript    output to
  1296.            file ffoooo..ppss.
  1297.  
  1298.        eennssccrriipptt    --22 ffoooo..ttxxtt
  1299.            Print file ffoooo..ttxxtt to two columns.
  1300.  
  1301.        eennssccrriipptt    --22rr ffoooo..ttxxtt
  1302.            Print file to two columns  and  rotate  output  90
  1303.            degrees (landscape).
  1304.  
  1305.        eennssccrriipptt    --DDDDuupplleexx::ttrruuee ffoooo..ttxxtt
  1306.            Print  file  in    duplex    (two  side) mode (printer
  1307.            dependant).
  1308.  
  1309.        eennssccrriipptt    --GG22rrEE --UU22 ffoooo..cc
  1310.            My default code printing     command:  gaudy  header,
  1311.            two  columns,  landscape,  code highlighting, 2-up
  1312.            printing.
  1313.  
  1314.        eennssccrriipptt    --EE ----ccoolloorr --wwhhttmmll ----ttoocc    --ppffoooo..hhttmmll **..hh **..cc
  1315.            A nice HTML report  of  your  project's    C  source
  1316.            files.
  1317.  
  1318.  
  1319. EENNVVIIRROONNMMEENNTT VVAARRIIAABBLLEESS
  1320.        The  environment     variable  EENNSSCCRRIIPPTT  can  be used to pass
  1321.        default options for eennssccrriipptt.  For example, to select  the
  1322.        default body font to be Times-Roman 7pt,    set the    following
  1323.        value to    the EENNSSCCRRIIPPTT environment variable:
  1324.  
  1325.        --ffTTiimmeess--RRoommaann77
  1326.  
  1327.  
  1328.        The value of the    EENNSSCCRRIIPPTT variable is processed before the
  1329.        command    line options, so command line options can be used
  1330.        to overwrite these defaults.
  1331.  
  1332.        Variable    EENNSSCCRRIIPPTT__LLIIBBRRAARRYY specifies the eennssccrriipptt's library
  1333.        directory.   It    can  be     used  to  overwrite the build-in
  1334.        default `@DATADIR@/enscript'.
  1335.  
  1336.  
  1337. RREETTUURRNN VVAALLUUEE
  1338.        EEnnssccrriipptt    returns    value 1    to the shell if    any  errors  were
  1339.        encountered    or    0     otherwise.    If   the   option
  1340.        ----eexxtteennddeedd--rreettuurrnn--vvaalluueess    was specified, the  return  value
  1341.        is constructed from the following flags:
  1342.  
  1343.        00       no errors or warnings
  1344.  
  1345.        22       some lines were truncated or wrapped
  1346.  
  1347.        44       some characters were missing from the used fonts
  1348.  
  1349.        88       some characters were unprintable
  1350.  
  1351.  
  1352. FFIILLEESS
  1353.        @DATADIR@/enscript/*.hdr               header files
  1354.        @DATADIR@/enscript/*.enc               input encoding vectors
  1355.        @DATADIR@/enscript/enscript.pro           PostScript prolog
  1356.        @DATADIR@/enscript/afm/*.afm           AFM files for PostScript    fonts
  1357.        @DATADIR@/enscript/font.map           index for the AFM files
  1358.        @DATADIR@/enscript/hl/*.st           states definition files
  1359.        @SYSCONFDIR@/enscript.cfg           system-wide configuration file
  1360.        @SYSCONFDIR@/enscriptsite.cfg           site configuration file
  1361.        ~/.enscriptrc                   personal    configuration file
  1362.        ~/.enscript/                   personal    resource directory
  1363.  
  1364.  
  1365. SSEEEE AALLSSOO
  1366.        diffpp(1),  ghostview(1),  gs(1), lpq(1), lpr(1), lprm(1),
  1367.        states(1)
  1368.  
  1369.  
  1370. AAUUTTHHOORR
  1371.        Markku Rossi <mtr@iki.fi> <http://www.iki.fi/~mtr/>
  1372.  
  1373.        GNU Enscript WWW    home  page:  <http://www.iki.fi/~mtr/gen
  1374.        script/>
  1375.  
  1376.  
  1377.  
  1378. ENSCRIPT           Mar 12, 1999              ENSCRIPT(1)
  1379.